<template>
  <div class="xtx-bread-item">
    <RouterLink v-if="props.to" :to="props.to">
      <slot />
    </RouterLink>
    <span v-else>
      <slot />
    </span>
  </div>
</template>
<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  to: {
    type: [String, Object]
  }
})
</script>
<style lang="less" scoped>
</style>